<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>eCommerce: Dokumentacja klasy ShopDAO.ProducerDAO</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="namespaces.html"><span>Pakiety</span></a></li>
      <li class="current"><a href="annotated.html"><span>Klasy</span></a></li>
      <li><a href="files.html"><span>Pliki</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Lista&nbsp;klas</span></a></li>
      <li><a href="hierarchy.html"><span>Hierarchia&nbsp;klas</span></a></li>
      <li><a href="functions.html"><span>Składowe&nbsp;klas</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespace_shop_d_a_o.html">ShopDAO</a>.<a class="el" href="class_shop_d_a_o_1_1_producer_d_a_o.html">ProducerDAO</a>
  </div>
</div>
<div class="contents">
<h1>Dokumentacja klasy ShopDAO.ProducerDAO</h1><!-- doxytag: class="ShopDAO::ProducerDAO" -->
<p><a href="class_shop_d_a_o_1_1_producer_d_a_o-members.html">Lista wszystkich składowych.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Metody publiczne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_producer_d_a_o.html#ada058854e7c9aa3792cec35767a41cdc">ProducerDAO</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_shop_model_1_1_producer.html">Producer</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_producer_d_a_o.html#a97e89f1de03d7e1ede9fe6b06f55ba49">GetProducers</a> (bool GetProductsCount, int?LanguageID)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">pobiera listę wszystkich producentów, zliczając produkty lub nie (Downloads list of all producers, counting products or not)  <a href="#a97e89f1de03d7e1ede9fe6b06f55ba49"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_producer_d_a_o.html#aecb59e86b8b79efba12a3f331612b238">SaveProducer</a> (int iDproducer, string name, int LanguageID)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Zapisuje dane producenta w bazie (Saves producer data in the database).  <a href="#aecb59e86b8b79efba12a3f331612b238"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_producer_d_a_o.html#a09aa7e1a95a6f64045fbea6384167bec">DeleteProducer</a> (int ID)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Usówa producenta z bazy (Deletes producer from the database).  <a href="#a09aa7e1a95a6f64045fbea6384167bec"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_producer_d_a_o.html#ac5c0a0d09bfd3db5ad3d1993cb320834">CheckIfProducerProductExist</a> (int ProducerId)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sprawdza czy w bazie są produkty od wybranego producenta (Checks database to find products of chosen producer).  <a href="#ac5c0a0d09bfd3db5ad3d1993cb320834"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_shop_model_1_1_producer.html">Producer</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_producer_d_a_o.html#afb82d6590b486f0975586d3bc7af8daa">GetProducersWithCategories</a> (int?LanguageID)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera producentów z kategoriami produktów (Downloads producers with products’ categories).  <a href="#afb82d6590b486f0975586d3bc7af8daa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_shop_model_1_1_producer.html">Producer</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_producer_d_a_o.html#a3896d36e49dbce094cdd21bff7a5fe8a">GetProducersByCategory</a> (int _categoryId, int?LanguageID)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera producentów dla wybranej kategorii (Downloads producers for chosen category).  <a href="#a3896d36e49dbce094cdd21bff7a5fe8a"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Opis szczegółowy</h2>

<p>Definicja w linii <a class="el" href="_producer_d_a_o_8cs_source.html#l00011">11</a> pliku <a class="el" href="_producer_d_a_o_8cs_source.html">ProducerDAO.cs</a>.</p>
<hr/><h2>Dokumentacja konstruktora i destruktora</h2>
<a class="anchor" id="ada058854e7c9aa3792cec35767a41cdc"></a><!-- doxytag: member="ShopDAO::ProducerDAO::ProducerDAO" ref="ada058854e7c9aa3792cec35767a41cdc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ShopDAO.ProducerDAO.ProducerDAO </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definicja w linii <a class="el" href="_producer_d_a_o_8cs_source.html#l00015">15</a> pliku <a class="el" href="_producer_d_a_o_8cs_source.html">ProducerDAO.cs</a>.</p>

</div>
</div>
<hr/><h2>Dokumentacja funkcji składowych</h2>
<a class="anchor" id="ac5c0a0d09bfd3db5ad3d1993cb320834"></a><!-- doxytag: member="ShopDAO::ProducerDAO::CheckIfProducerProductExist" ref="ac5c0a0d09bfd3db5ad3d1993cb320834" args="(int ProducerId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ShopDAO.ProducerDAO.CheckIfProducerProductExist </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>ProducerId</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sprawdza czy w bazie są produkty od wybranego producenta (Checks database to find products of chosen producer). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>ProducerId</em>&nbsp;</td><td>Unikalen id producenta (Unique producer id)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca 'true' jeśli w bazie sa produkty od wybranego producenta (Returns ‘true’ if there are products of chosen producer in the database)</dd></dl>

<p>Definicja w linii <a class="el" href="_producer_d_a_o_8cs_source.html#l00139">139</a> pliku <a class="el" href="_producer_d_a_o_8cs_source.html">ProducerDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a09aa7e1a95a6f64045fbea6384167bec"></a><!-- doxytag: member="ShopDAO::ProducerDAO::DeleteProducer" ref="a09aa7e1a95a6f64045fbea6384167bec" args="(int ID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ShopDAO.ProducerDAO.DeleteProducer </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>ID</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Usówa producenta z bazy (Deletes producer from the database). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>ID</em>&nbsp;</td><td>Unikalen id producenta (Unique product id)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca 'true' jesli operacja zakończona powodzeniem (Returns ‘true’ is operation succeeded)</dd></dl>

<p>Definicja w linii <a class="el" href="_producer_d_a_o_8cs_source.html#l00107">107</a> pliku <a class="el" href="_producer_d_a_o_8cs_source.html">ProducerDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a97e89f1de03d7e1ede9fe6b06f55ba49"></a><!-- doxytag: member="ShopDAO::ProducerDAO::GetProducers" ref="a97e89f1de03d7e1ede9fe6b06f55ba49" args="(bool GetProductsCount, int?LanguageID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_shop_model_1_1_producer.html">Producer</a>&gt; ShopDAO.ProducerDAO.GetProducers </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>GetProductsCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int?&nbsp;</td>
          <td class="paramname"> <em>LanguageID</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>pobiera listę wszystkich producentów, zliczając produkty lub nie (Downloads list of all producers, counting products or not) </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>GetProductsCount</em>&nbsp;</td><td>Czy zliczać produkty dla producenta (Count products for producer?)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>LanguageID</em>&nbsp;</td><td>Id języka w jakim wyświetlana jest strona (Language ID in which page is displayed)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Lista obiektów typu producent przechowująca informacje o producentach (List of Producent objects storing information about producers)</dd></dl>

<p>Definicja w linii <a class="el" href="_producer_d_a_o_8cs_source.html#l00031">31</a> pliku <a class="el" href="_producer_d_a_o_8cs_source.html">ProducerDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a3896d36e49dbce094cdd21bff7a5fe8a"></a><!-- doxytag: member="ShopDAO::ProducerDAO::GetProducersByCategory" ref="a3896d36e49dbce094cdd21bff7a5fe8a" args="(int _categoryId, int?LanguageID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_shop_model_1_1_producer.html">Producer</a>&gt; ShopDAO.ProducerDAO.GetProducersByCategory </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>_categoryId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int?&nbsp;</td>
          <td class="paramname"> <em>LanguageID</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera producentów dla wybranej kategorii (Downloads producers for chosen category). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_categoryId</em>&nbsp;</td><td>Unikalne id categorii (Unique category id)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>LanguageID</em>&nbsp;</td><td>Unikalne id jezyka w jakim wyświetlana jest strona (Unique language ID in which page is displayed)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Lista obiektów typu producent zawierająca informacje o producentach (List of Producent objects storing information about producers)</dd></dl>

<p>Definicja w linii <a class="el" href="_producer_d_a_o_8cs_source.html#l00219">219</a> pliku <a class="el" href="_producer_d_a_o_8cs_source.html">ProducerDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="afb82d6590b486f0975586d3bc7af8daa"></a><!-- doxytag: member="ShopDAO::ProducerDAO::GetProducersWithCategories" ref="afb82d6590b486f0975586d3bc7af8daa" args="(int?LanguageID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_shop_model_1_1_producer.html">Producer</a>&gt; ShopDAO.ProducerDAO.GetProducersWithCategories </td>
          <td>(</td>
          <td class="paramtype">int?&nbsp;</td>
          <td class="paramname"> <em>LanguageID</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera producentów z kategoriami produktów (Downloads producers with products’ categories). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>LanguageID</em>&nbsp;</td><td>Unikalne id języka w jakim wyświetlana jest strona (Unique language ID in which page is displayed)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Lista obiektów typu producent zawierająca informacje o producentach (List of Producer objects storing information about producers)</dd></dl>

<p>Definicja w linii <a class="el" href="_producer_d_a_o_8cs_source.html#l00172">172</a> pliku <a class="el" href="_producer_d_a_o_8cs_source.html">ProducerDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aecb59e86b8b79efba12a3f331612b238"></a><!-- doxytag: member="ShopDAO::ProducerDAO::SaveProducer" ref="aecb59e86b8b79efba12a3f331612b238" args="(int iDproducer, string name, int LanguageID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ShopDAO.ProducerDAO.SaveProducer </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iDproducer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>LanguageID</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Zapisuje dane producenta w bazie (Saves producer data in the database). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>iDproducer</em>&nbsp;</td><td>Unikalne id producenta (Unique producer id)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>Nazwa producneta (Producer name)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>LanguageID</em>&nbsp;</td><td>Unikalne id języka w jakim wyświetlana jest strona (Unique language ID in which page is displayed)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Liczba zmodyfikowanych wierszy (Number of modified rows)</dd></dl>

<p>Definicja w linii <a class="el" href="_producer_d_a_o_8cs_source.html#l00073">73</a> pliku <a class="el" href="_producer_d_a_o_8cs_source.html">ProducerDAO.cs</a>.</p>

</div>
</div>
<hr/>Dokumentacja dla tej klasy została wygenerowana z pliku:<ul>
<li>D:/CentrumXP/e-Commerce/eCommerceDev/SklepDAO/<a class="el" href="_producer_d_a_o_8cs_source.html">ProducerDAO.cs</a></li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Klasy</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Przestrzenie nazw</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Zmienne</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Wyliczenia</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Właściwości</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Zdarzenia</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Wygenerowano Mon Nov 9 06:08:22 2009 dla eCommerce programem&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
